﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StorategyApp
{
    public class Plus : Colulator
    {
        /// <summary>
        ///  实现父类构造函数
        /// </summary>
        /// <param name="num1"></param>
        /// <param name="num2"></param>
        public Plus(int num1, int num2) : base(num1, num2)
        {

        }

        /// <summary>
        /// 执行计算
        /// 实现父类抽象方法
        /// </summary>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public override int Excute()
        {
            return Num1 + Num2;
        }
    }
}
